package com.lq.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lq.gulimall.product.vo.Attr;
import com.lq.gulimall.product.vo.AttrGroupRelationVo;
import com.lq.gulimall.product.vo.AttrReadVo;
import io.renren.common.utils.PageUtils;
import com.lq.gulimall.product.entity.PmsAttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author lq
 * @email 
 * @date 2020-11-09 19:28:37
 */
public interface PmsAttrService extends IService<PmsAttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(Attr attr);

    PageUtils queryPage(Map<String, Object> params, Long catId,String type);

    AttrReadVo getAttrInfo(Long attrId);

    void updateAttr(AttrReadVo pmsAttr);

    List<PmsAttrEntity> getRlationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] relationVos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);
}

